package com.wmh.baseservice.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wmh.baseservice.admin.entity.AdRoleRobotTask;
import com.wmh.baseservice.common.mybatisplus.structure.LambdaQueryWrapperX;

import java.util.List;


/**
 * @author 谢骏
 * @description 针对表【ad_role_robot_task(用户角色与机器任务编号的映射)】的数据库操作Mapper
 * @createDate 2023-11-07 09:23:18
 * @Entity generator.domain.AdRoleRobotTask
 */
public interface AdRoleRobotTaskMapper extends BaseMapper<AdRoleRobotTask> {

    default List<AdRoleRobotTask> get(Long roleId) {
        return selectList(new LambdaQueryWrapperX<AdRoleRobotTask>()
                .eq(AdRoleRobotTask::getRoleId, roleId));
    }

    default List<AdRoleRobotTask> get(List<Long> roleIds) {
        return selectList(new LambdaQueryWrapperX<AdRoleRobotTask>()
                .in(AdRoleRobotTask::getRoleId, roleIds));
    }
}




